<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script>
<body>
    <div id="index">
        <input type="checkbox" name="" id="" v-model="checkbox" true-value="yes" false-value="no">
        <p>{{checkbox}}</p>
        <input type="radio" name="" id="" :value="hobby" v-model="sex">
        <select name="" id="" v-model='selected'>
            <option value="" disabled>请选择</option>
            <option :value="name">{{name}}</option>
        </select>
        <p>{{selected}}</p>
    </div>
    <script>
        let vm = new Vue({
            el: "#index",
            data: {
                checkbox: '',
                hobby: '0',
                sex: '',
                name: '大河',
                selected: ''
            }
        })
    </script>
</body>

